import datetime

def add_symbol(stock):
  code = stock['code']
  if code.find('6') == 0:
    stock['symbol'] = 'SH' + code
  elif code.find('9') == 0:
    stock['symbol'] = 'BJ' + code
  else:
    stock['symbol'] = 'SZ' + code
  return  stock

def hashtoday():

  now = datetime.datetime.now()

  def add0 (num):
    if num < 10:
      return '0' + str(num)
    else:
      return str(num)

  month = add0(now.month)
  day = add0(now.day)
  hour = add0(now.hour)
  minute = add0(now.minute)

  return f"{month}-{day}-{hour}-{minute}"